<template>
  <el-container>
    <el-header><span>欢迎使用图书管理系统！</span></el-header>
    <el-main>
      <el-carousel indicator-position="outside" type="card" height="400px">
        <el-carousel-item v-for="item in img" :key="item">
          <el-image        
            :src="item"
            fit="contain"
          ></el-image>
        </el-carousel-item>
      </el-carousel>
    </el-main>
    <el-button><a href="http://www.lizibin.top">点此进入我的博客</a></el-button>
  </el-container>
</template>
<script>
import img1 from "../assets/img/img1.jpg";
import img2 from "../assets/img/img2.jpg";
import img3 from "../assets/img/img3.jpg";
import img4 from "../assets/img/img4.jpg";
export default {
  data() {
    return {
      img: [img1, img2, img3, img4],
    };
  },
};
</script>
<style lang="less" scoped>
.el-image {
    margin: 0 auto;
}
.el-header {
  background-color: #e3ebf5;
  color: rgb(214, 96, 96);
  text-align: center;
  line-height: 60px;
  font-size: 30px;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}
</style>